{if $state==1}<script>
function maximizeWindow(){
	var offset = (navigator.userAgent.indexOf("Mac") != -1 || navigator.userAgent.indexOf("Gecko") != -1 ||
	navigator.appName.indexOf("Netscape") != -1) ? 0 : 4;
	window.moveTo(-offset, -offset);
	window.resizeTo(screen.availWidth + (2 * offset), screen.availHeight + (2 * offset));
}
try{
	window.opener.UCheck();window.opener=null;window.close();
}catch(error){
	try{
		window.opener.parent.UCheck();window.opener=null;window.close();
	}catch(error){
		{if $state==1}
		window.top.location.href="/member/";maximizeWindow();{/if}
		{if $state==3}
		window.top.location.href="/member/reg/qq";maximizeWindow();{/if}
	}
}
</script>{/if}

{if $state==3}<script>
window.top.location.href="/member/reg/qq";
</script>{/if}

{if $state==2}
QQ帐号绑定成功
{/if}
{if $state==4}
绑定失败，该QQ已经绑定过其他帐号
{/if}